package org.dtrd.modules.flup.entity.bean;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import org.dtrd.modules.doctor.entity.po.DtrdEntRdDoctor;

import java.util.List;

/**
 * @author qr
 * @date 2021/12/21 17:16
 */
@ApiModel("可预约医生的信息")
@Getter
@Setter
@JsonInclude(JsonInclude.Include.NON_NULL)
@NoArgsConstructor
public class AppointmentDoctorInfo {

    @ApiModelProperty("医生id")
    private Integer doctorId;

    @ApiModelProperty("医生名称")
    private String doctorName;

    @ApiModelProperty("复诊记录列表")
    private List<DoctorFlupDaily> flupRecord;

    public AppointmentDoctorInfo(DtrdEntRdDoctor doctor) {
        this.doctorId = doctor.getDataId();
        this.doctorName = doctor.getDoctorsName();
    }
}
